<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html> 
	<head>
		<title>Search</title>
		<logic:notPresent name="back">
        	<link href="login.css" rel="stylesheet" type="text/css">
        </logic:notPresent>
        <logic:present name="back">
        	<link href="form/login.css" rel="stylesheet" type="text/css">
        </logic:present>
	</head>
	<body>
		<div class="container">
			<div class="header">
				<html:img page="/yssz.jpg"/>
				<div id="login">
					<html:link action="mainPre">main page</html:link>
				</div>
			</div>
			<div class="content">
				<h1>Search Engine</h1>
                <p>
					<html:form action="/search">
						content : <html:text property="content"/><html:errors property="content"/><br/>
						scope : <html:select property="type">
							<html:option value="topic">topics</html:option>
							<html:option value="poster">posters</html:option>
							<logic:notPresent name="admin" scope="session">
								<html:option value="record">illness records</html:option>
								<html:option value="info">illness information</html:option>
							</logic:notPresent>
							<logic:present name="admin" scope="session">
								<html:option value="user">users</html:option>
							</logic:present>
						</html:select><html:errors property="type"/><br/>
						<html:submit/><html:cancel/>
					</html:form>
				</p>
			</div>
			<div class="footer">
				<p>copyright@yssz</p>
			</div>
		</div>
	</body>
</html>

